/*
 * MIT License
 *
 * Copyright (c) 2025 Mark·虎
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

package com.hsxxherp.key.support.model.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 高级查询条件
 *
 * @author Mark·虎克（2486970363@qq.com）
 * @since 2025-01-25
 */
@Data
@Schema(name = "query_condition", description = "高级查询条件")
public class QueryCondition {
    /**
     * 表别名
     */
    @Schema(name = "table_alias", description = "表的别名", example = "t1")
    private String tableAlias;
    /**
     * 查询字段
     */
    @Schema(name = "field", description = "需要查询的字段", example = "username")
    private String field;
    /**
     * 查询操作符，如 "eq"（等于）、"gt"（大于）等
     */
    @Schema(name = "operator", description = "查询操作符，如 'eq'（等于）、'gt'（大于）等", example = "eq")
    private String operator;
    /**
     * 查询值
     */
    @Schema(name = "value", description = "查询使用的值", example = "JohnDoe")
    private Object value;
}